package com.joe.other;

import org.apache.commons.lang3.ObjectUtils;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;

public class Temp {

    public static void main(String[] args) {

        Map<String, Object[]> t = new HashMap<>();
        t.put("a", new String[]{null});

        for (Map.Entry<String, Object[]> entry : t.entrySet()) {
            if (entry.getValue() == null || !ObjectUtils.allNotNull(entry.getValue())) {
                continue;
            }
            System.out.println(entry.getValue());
        }

//        String x = "<html><head></head><body>%s</body></html>";
//        String result = String.format(x, "zhou");
//        System.out.println(result);

        List<Parent> baseServiceAgentRespDTOS = new ArrayList<>();
        baseServiceAgentRespDTOS.add(new Parent());
        Parent e = new Parent();
        e.setId(1);
        baseServiceAgentRespDTOS.add(e);
        List<Integer> agentIds = baseServiceAgentRespDTOS.stream().filter(baseServiceAgentRespDTO -> baseServiceAgentRespDTO.getId() != null).map(Parent::getId).collect(Collectors.toList());
        System.out.println(agentIds);
    }


}
